﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Yeap.Kernel.Storage;
using Yeap.Kernel.Utils.Enums;

namespace Yeap.Models
{
    public class WorkListModel
    {
        public List<WorkListItem> Works { get; set; }

        public Professor SelectedProfessor { get; set; }
        public WorkTypes SelectedWorkType { get; set; }
        public Int32 SelectedYear { get; set; }
        public Int32 SelectedCourse { get; set; }

        public List<NameValueItem> AvailableProfessors { get; set; }
        public List<NameValueItem> AvailableWorkTypes { get; set; }
        public List<NameValueItem> AvailableYears { get; set; }
        public List<NameValueItem> AvailableCourses { get; set; }

        public int Index { get; set; }

    }

    public class NameValueItem
    {
        public String Name { get; set; }
        public String Value { get; set; }
    }

    public class WorkListItem
    {
        public Int32 WorkId { get; set; }
        public Work Work { get; set; }
        public String WorkTitle { get; set; }
        public Professor Teacher { get; set; }
        public Int32 Year { get; set; }
        public WorkTypes WorkType { get; set; }
        public Student Student { get; set; }
        public List<Student> AssignedStudents { get; set; }
        public List<Student> ProposedStudents { get; set; }
    }
}